import 'package:enterprise_v6_app/generated/json/base/json_convert_content.dart';
import 'package:enterprise_v6_app/app/data/entities/application/Inventory_system/get_the_feign_exercise_plan_page_entity.dart';

GetTheFeignExercisePlanPageEntity $GetTheFeignExercisePlanPageEntityFromJson(Map<String, dynamic> json) {
  final GetTheFeignExercisePlanPageEntity getTheFeignExercisePlanPageEntity = GetTheFeignExercisePlanPageEntity();
  final String? accidentId = jsonConvert.convert<String>(json['accidentId']);
  if (accidentId != null) {
    getTheFeignExercisePlanPageEntity.accidentId = accidentId;
  }
  final String? companyCode = jsonConvert.convert<String>(json['companyCode']);
  if (companyCode != null) {
    getTheFeignExercisePlanPageEntity.companyCode = companyCode;
  }
  final String? createBy = jsonConvert.convert<String>(json['createBy']);
  if (createBy != null) {
    getTheFeignExercisePlanPageEntity.createBy = createBy;
  }
  final String? createById = jsonConvert.convert<String>(json['createById']);
  if (createById != null) {
    getTheFeignExercisePlanPageEntity.createById = createById;
  }
  final String? createDate = jsonConvert.convert<String>(json['createDate']);
  if (createDate != null) {
    getTheFeignExercisePlanPageEntity.createDate = createDate;
  }
  final String? deleted = jsonConvert.convert<String>(json['deleted']);
  if (deleted != null) {
    getTheFeignExercisePlanPageEntity.deleted = deleted;
  }
  final String? emergencyId = jsonConvert.convert<String>(json['emergencyId']);
  if (emergencyId != null) {
    getTheFeignExercisePlanPageEntity.emergencyId = emergencyId;
  }
  final String? emergencyIdName = jsonConvert.convert<String>(json['emergencyIdName']);
  if (emergencyIdName != null) {
    getTheFeignExercisePlanPageEntity.emergencyIdName = emergencyIdName;
  }
  final String? exerciseEstimate = jsonConvert.convert<String>(json['exerciseEstimate']);
  if (exerciseEstimate != null) {
    getTheFeignExercisePlanPageEntity.exerciseEstimate = exerciseEstimate;
  }
  final String? exercisePlanAddress = jsonConvert.convert<String>(json['exercisePlanAddress']);
  if (exercisePlanAddress != null) {
    getTheFeignExercisePlanPageEntity.exercisePlanAddress = exercisePlanAddress;
  }
  final String? exercisePlanClass = jsonConvert.convert<String>(json['exercisePlanClass']);
  if (exercisePlanClass != null) {
    getTheFeignExercisePlanPageEntity.exercisePlanClass = exercisePlanClass;
  }
  final String? exercisePlanClassName = jsonConvert.convert<String>(json['exercisePlanClassName']);
  if (exercisePlanClassName != null) {
    getTheFeignExercisePlanPageEntity.exercisePlanClassName = exercisePlanClassName;
  }
  final String? exercisePlanLevel = jsonConvert.convert<String>(json['exercisePlanLevel']);
  if (exercisePlanLevel != null) {
    getTheFeignExercisePlanPageEntity.exercisePlanLevel = exercisePlanLevel;
  }
  final String? exercisePlanLevelName = jsonConvert.convert<String>(json['exercisePlanLevelName']);
  if (exercisePlanLevelName != null) {
    getTheFeignExercisePlanPageEntity.exercisePlanLevelName = exercisePlanLevelName;
  }
  final String? exercisePlanName = jsonConvert.convert<String>(json['exercisePlanName']);
  if (exercisePlanName != null) {
    getTheFeignExercisePlanPageEntity.exercisePlanName = exercisePlanName;
  }
  final String? exercisePlanProgramme = jsonConvert.convert<String>(json['exercisePlanProgramme']);
  if (exercisePlanProgramme != null) {
    getTheFeignExercisePlanPageEntity.exercisePlanProgramme = exercisePlanProgramme;
  }
  final String? exercisePlanScript = jsonConvert.convert<String>(json['exercisePlanScript']);
  if (exercisePlanScript != null) {
    getTheFeignExercisePlanPageEntity.exercisePlanScript = exercisePlanScript;
  }
  final String? exercisePlanType = jsonConvert.convert<String>(json['exercisePlanType']);
  if (exercisePlanType != null) {
    getTheFeignExercisePlanPageEntity.exercisePlanType = exercisePlanType;
  }
  final String? exercisePlanTypeName = jsonConvert.convert<String>(json['exercisePlanTypeName']);
  if (exercisePlanTypeName != null) {
    getTheFeignExercisePlanPageEntity.exercisePlanTypeName = exercisePlanTypeName;
  }
  final String? exerciseProcess = jsonConvert.convert<String>(json['exerciseProcess']);
  if (exerciseProcess != null) {
    getTheFeignExercisePlanPageEntity.exerciseProcess = exerciseProcess;
  }
  final String? exerciseScenario = jsonConvert.convert<String>(json['exerciseScenario']);
  if (exerciseScenario != null) {
    getTheFeignExercisePlanPageEntity.exerciseScenario = exerciseScenario;
  }
  final String? existingProblems = jsonConvert.convert<String>(json['existingProblems']);
  if (existingProblems != null) {
    getTheFeignExercisePlanPageEntity.existingProblems = existingProblems;
  }
  final String? expectedCompletionTime = jsonConvert.convert<String>(json['expectedCompletionTime']);
  if (expectedCompletionTime != null) {
    getTheFeignExercisePlanPageEntity.expectedCompletionTime = expectedCompletionTime;
  }
  final String? id = jsonConvert.convert<String>(json['id']);
  if (id != null) {
    getTheFeignExercisePlanPageEntity.id = id;
  }
  final String? improvementMeasures = jsonConvert.convert<String>(json['improvementMeasures']);
  if (improvementMeasures != null) {
    getTheFeignExercisePlanPageEntity.improvementMeasures = improvementMeasures;
  }
  final String? liveDepartmentId = jsonConvert.convert<String>(json['liveDepartmentId']);
  if (liveDepartmentId != null) {
    getTheFeignExercisePlanPageEntity.liveDepartmentId = liveDepartmentId;
  }
  final String? liverId = jsonConvert.convert<String>(json['liverId']);
  if (liverId != null) {
    getTheFeignExercisePlanPageEntity.liverId = liverId;
  }
  final String? otherFile = jsonConvert.convert<String>(json['otherFile']);
  if (otherFile != null) {
    getTheFeignExercisePlanPageEntity.otherFile = otherFile;
  }
  final String? planEndTime = jsonConvert.convert<String>(json['planEndTime']);
  if (planEndTime != null) {
    getTheFeignExercisePlanPageEntity.planEndTime = planEndTime;
  }
  final String? planStartTime = jsonConvert.convert<String>(json['planStartTime']);
  if (planStartTime != null) {
    getTheFeignExercisePlanPageEntity.planStartTime = planStartTime;
  }
  final String? preparedBy = jsonConvert.convert<String>(json['preparedBy']);
  if (preparedBy != null) {
    getTheFeignExercisePlanPageEntity.preparedBy = preparedBy;
  }
  final String? preparedDate = jsonConvert.convert<String>(json['preparedDate']);
  if (preparedDate != null) {
    getTheFeignExercisePlanPageEntity.preparedDate = preparedDate;
  }
  final String? processEncoding = jsonConvert.convert<String>(json['processEncoding']);
  if (processEncoding != null) {
    getTheFeignExercisePlanPageEntity.processEncoding = processEncoding;
  }
  final String? purposeRequirement = jsonConvert.convert<String>(json['purposeRequirement']);
  if (purposeRequirement != null) {
    getTheFeignExercisePlanPageEntity.purposeRequirement = purposeRequirement;
  }
  final String? reportUrl = jsonConvert.convert<String>(json['reportUrl']);
  if (reportUrl != null) {
    getTheFeignExercisePlanPageEntity.reportUrl = reportUrl;
  }
  final int? toExamineStatus = jsonConvert.convert<int>(json['toExamineStatus']);
  if (toExamineStatus != null) {
    getTheFeignExercisePlanPageEntity.toExamineStatus = toExamineStatus;
  }
  final String? toExamineStatusName = jsonConvert.convert<String>(json['toExamineStatusName']);
  if (toExamineStatusName != null) {
    getTheFeignExercisePlanPageEntity.toExamineStatusName = toExamineStatusName;
  }
  final String? totalCommand = jsonConvert.convert<String>(json['totalCommand']);
  if (totalCommand != null) {
    getTheFeignExercisePlanPageEntity.totalCommand = totalCommand;
  }
  final int? totalPerson = jsonConvert.convert<int>(json['totalPerson']);
  if (totalPerson != null) {
    getTheFeignExercisePlanPageEntity.totalPerson = totalPerson;
  }
  final String? updateBy = jsonConvert.convert<String>(json['updateBy']);
  if (updateBy != null) {
    getTheFeignExercisePlanPageEntity.updateBy = updateBy;
  }
  final String? updateById = jsonConvert.convert<String>(json['updateById']);
  if (updateById != null) {
    getTheFeignExercisePlanPageEntity.updateById = updateById;
  }
  final String? updateDate = jsonConvert.convert<String>(json['updateDate']);
  if (updateDate != null) {
    getTheFeignExercisePlanPageEntity.updateDate = updateDate;
  }
  return getTheFeignExercisePlanPageEntity;
}

Map<String, dynamic> $GetTheFeignExercisePlanPageEntityToJson(GetTheFeignExercisePlanPageEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['accidentId'] = entity.accidentId;
  data['companyCode'] = entity.companyCode;
  data['createBy'] = entity.createBy;
  data['createById'] = entity.createById;
  data['createDate'] = entity.createDate;
  data['deleted'] = entity.deleted;
  data['emergencyId'] = entity.emergencyId;
  data['emergencyIdName'] = entity.emergencyIdName;
  data['exerciseEstimate'] = entity.exerciseEstimate;
  data['exercisePlanAddress'] = entity.exercisePlanAddress;
  data['exercisePlanClass'] = entity.exercisePlanClass;
  data['exercisePlanClassName'] = entity.exercisePlanClassName;
  data['exercisePlanLevel'] = entity.exercisePlanLevel;
  data['exercisePlanLevelName'] = entity.exercisePlanLevelName;
  data['exercisePlanName'] = entity.exercisePlanName;
  data['exercisePlanProgramme'] = entity.exercisePlanProgramme;
  data['exercisePlanScript'] = entity.exercisePlanScript;
  data['exercisePlanType'] = entity.exercisePlanType;
  data['exercisePlanTypeName'] = entity.exercisePlanTypeName;
  data['exerciseProcess'] = entity.exerciseProcess;
  data['exerciseScenario'] = entity.exerciseScenario;
  data['existingProblems'] = entity.existingProblems;
  data['expectedCompletionTime'] = entity.expectedCompletionTime;
  data['id'] = entity.id;
  data['improvementMeasures'] = entity.improvementMeasures;
  data['liveDepartmentId'] = entity.liveDepartmentId;
  data['liverId'] = entity.liverId;
  data['otherFile'] = entity.otherFile;
  data['planEndTime'] = entity.planEndTime;
  data['planStartTime'] = entity.planStartTime;
  data['preparedBy'] = entity.preparedBy;
  data['preparedDate'] = entity.preparedDate;
  data['processEncoding'] = entity.processEncoding;
  data['purposeRequirement'] = entity.purposeRequirement;
  data['reportUrl'] = entity.reportUrl;
  data['toExamineStatus'] = entity.toExamineStatus;
  data['toExamineStatusName'] = entity.toExamineStatusName;
  data['totalCommand'] = entity.totalCommand;
  data['totalPerson'] = entity.totalPerson;
  data['updateBy'] = entity.updateBy;
  data['updateById'] = entity.updateById;
  data['updateDate'] = entity.updateDate;
  return data;
}

extension GetTheFeignExercisePlanPageEntityExtension on GetTheFeignExercisePlanPageEntity {
  GetTheFeignExercisePlanPageEntity copyWith({
    String? accidentId,
    String? companyCode,
    String? createBy,
    String? createById,
    String? createDate,
    String? deleted,
    String? emergencyId,
    String? emergencyIdName,
    String? exerciseEstimate,
    String? exercisePlanAddress,
    String? exercisePlanClass,
    String? exercisePlanClassName,
    String? exercisePlanLevel,
    String? exercisePlanLevelName,
    String? exercisePlanName,
    String? exercisePlanProgramme,
    String? exercisePlanScript,
    String? exercisePlanType,
    String? exercisePlanTypeName,
    String? exerciseProcess,
    String? exerciseScenario,
    String? existingProblems,
    String? expectedCompletionTime,
    String? id,
    String? improvementMeasures,
    String? liveDepartmentId,
    String? liverId,
    String? otherFile,
    String? planEndTime,
    String? planStartTime,
    String? preparedBy,
    String? preparedDate,
    String? processEncoding,
    String? purposeRequirement,
    String? reportUrl,
    int? toExamineStatus,
    String? toExamineStatusName,
    String? totalCommand,
    int? totalPerson,
    String? updateBy,
    String? updateById,
    String? updateDate,
  }) {
    return GetTheFeignExercisePlanPageEntity()
      ..accidentId = accidentId ?? this.accidentId
      ..companyCode = companyCode ?? this.companyCode
      ..createBy = createBy ?? this.createBy
      ..createById = createById ?? this.createById
      ..createDate = createDate ?? this.createDate
      ..deleted = deleted ?? this.deleted
      ..emergencyId = emergencyId ?? this.emergencyId
      ..emergencyIdName = emergencyIdName ?? this.emergencyIdName
      ..exerciseEstimate = exerciseEstimate ?? this.exerciseEstimate
      ..exercisePlanAddress = exercisePlanAddress ?? this.exercisePlanAddress
      ..exercisePlanClass = exercisePlanClass ?? this.exercisePlanClass
      ..exercisePlanClassName = exercisePlanClassName ?? this.exercisePlanClassName
      ..exercisePlanLevel = exercisePlanLevel ?? this.exercisePlanLevel
      ..exercisePlanLevelName = exercisePlanLevelName ?? this.exercisePlanLevelName
      ..exercisePlanName = exercisePlanName ?? this.exercisePlanName
      ..exercisePlanProgramme = exercisePlanProgramme ?? this.exercisePlanProgramme
      ..exercisePlanScript = exercisePlanScript ?? this.exercisePlanScript
      ..exercisePlanType = exercisePlanType ?? this.exercisePlanType
      ..exercisePlanTypeName = exercisePlanTypeName ?? this.exercisePlanTypeName
      ..exerciseProcess = exerciseProcess ?? this.exerciseProcess
      ..exerciseScenario = exerciseScenario ?? this.exerciseScenario
      ..existingProblems = existingProblems ?? this.existingProblems
      ..expectedCompletionTime = expectedCompletionTime ?? this.expectedCompletionTime
      ..id = id ?? this.id
      ..improvementMeasures = improvementMeasures ?? this.improvementMeasures
      ..liveDepartmentId = liveDepartmentId ?? this.liveDepartmentId
      ..liverId = liverId ?? this.liverId
      ..otherFile = otherFile ?? this.otherFile
      ..planEndTime = planEndTime ?? this.planEndTime
      ..planStartTime = planStartTime ?? this.planStartTime
      ..preparedBy = preparedBy ?? this.preparedBy
      ..preparedDate = preparedDate ?? this.preparedDate
      ..processEncoding = processEncoding ?? this.processEncoding
      ..purposeRequirement = purposeRequirement ?? this.purposeRequirement
      ..reportUrl = reportUrl ?? this.reportUrl
      ..toExamineStatus = toExamineStatus ?? this.toExamineStatus
      ..toExamineStatusName = toExamineStatusName ?? this.toExamineStatusName
      ..totalCommand = totalCommand ?? this.totalCommand
      ..totalPerson = totalPerson ?? this.totalPerson
      ..updateBy = updateBy ?? this.updateBy
      ..updateById = updateById ?? this.updateById
      ..updateDate = updateDate ?? this.updateDate;
  }
}
